package com.example.mall.dao;

import com.example.mall.entity.User;

import java.util.List;

public interface UserDAO {
    List<User> selectAll();
    User selectOneById(Integer id);
    User selectOneByUsername(String username);
    List<User> query(Integer page, Integer pageSize, User user);
    void save(User user);
    void delete(Integer id);
    void update(User user);
}
